import service from '@/utils/request'

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 创建首办单-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingAccessorySpec true "创建首办单-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /firstOrderProcessingAccessorySpec/createFirstOrderProcessingAccessorySpec [post]
export const createFirstOrderProcessingAccessorySpec = (data) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/createFirstOrderProcessingAccessorySpec',
    method: 'post',
    data
  })
}

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 删除首办单-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingAccessorySpec true "删除首办单-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingAccessorySpec/deleteFirstOrderProcessingAccessorySpec [delete]
export const deleteFirstOrderProcessingAccessorySpec = (params) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/deleteFirstOrderProcessingAccessorySpec',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 批量删除首办单-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除首办单-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingAccessorySpec/deleteFirstOrderProcessingAccessorySpec [delete]
export const deleteFirstOrderProcessingAccessorySpecByIds = (params) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/deleteFirstOrderProcessingAccessorySpecByIds',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 更新首办单-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingAccessorySpec true "更新首办单-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /firstOrderProcessingAccessorySpec/updateFirstOrderProcessingAccessorySpec [put]
export const updateFirstOrderProcessingAccessorySpec = (data) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/updateFirstOrderProcessingAccessorySpec',
    method: 'put',
    data
  })
}

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 用id查询首办单-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FirstOrderProcessingAccessorySpec true "用id查询首办单-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /firstOrderProcessingAccessorySpec/findFirstOrderProcessingAccessorySpec [get]
export const findFirstOrderProcessingAccessorySpec = (params) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/findFirstOrderProcessingAccessorySpec',
    method: 'get',
    params
  })
}

// @Tags FirstOrderProcessingAccessorySpec
// @Summary 分页获取首办单-配件规格清单列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取首办单-配件规格清单列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /firstOrderProcessingAccessorySpec/getFirstOrderProcessingAccessorySpecList [get]
export const getFirstOrderProcessingAccessorySpecList = (params) => {
  return service({
    url: '/firstOrderProcessingAccessorySpec/getFirstOrderProcessingAccessorySpecList',
    method: 'get',
    params
  })
}
